package cn.amaake.magicplugin.satoken.config;


import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * nacos 配置文件
 */
@ConfigurationProperties(prefix = "magic-api.satoken")
public class MagicApiSaTokenConfig{

    /**
     * SaToken模式
     */
    private SaTokenMode satokenmode;

    /**
     * 当启动oauth2相关模式时是否启动前置客户端凭证鉴权
     */
    private boolean isCheckClient = false;

    /**
     * oauth2服务器地址
     */
    private String oauth2ServerUrl;

    /**
     * 本机clientToken，启动系统后自动初始化
     */
    private String localClientToken;

    /**
     * 应用id
     */
    private String clientId;

    /**
     * 应用秘钥
     */
    private String clientSecret;

    public String getClientSecret() {
        return clientSecret;
    }

    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getLocalClientToken() {
        return localClientToken;
    }

    public void setLocalClientToken(String localClientToken) {
        this.localClientToken = localClientToken;
    }

    public String getOauth2ServerUrl() {
        return oauth2ServerUrl;
    }

    public void setOauth2ServerUrl(String oauth2ServerUrl) {
        this.oauth2ServerUrl = oauth2ServerUrl;
    }

    public boolean isCheckClient() {
        return isCheckClient;
    }

    public void setCheckClient(boolean checkClient) {
        isCheckClient = checkClient;
    }

    public SaTokenMode getSatokenmode() {
        return satokenmode;
    }

    public void setSatokenmode(SaTokenMode satokenmode) {
        this.satokenmode = satokenmode;
    }
}
